import gradio as gr
import os

root_path = os.environ.get("ROOT_PATH") # gradio低于4.0版本launch时需传入root_path参数空间才可以正常展示
def gitcode_quickstart(name):
    return "Welcome to ai gitcode community, " + name + "!!"
demo = gr.Interface(fn=gitcode_quickstart, inputs="text", outputs="text")
demo.launch()